package com.cndw.kungfu.config;

/**
 * 生活技能枚举类
 * @author fantadust [9677889@qq.com]
 * @date 2011-6-30 上午10:18:13
 */
public enum LifeSkillType {
	
	wood(1,10),
	metal(2,20),
	stone(3,30),
	herbs(4,40);
	
		
	private int industry;
	private int skillLibId;
	
	private LifeSkillType(int industry,int skillLibId){
		this.industry = industry;
		this.skillLibId = skillLibId;
	}

	public int getIndustry() {
		return industry;
	}

	public int getSkillLibId() {
		return skillLibId;
	}

	
	public static LifeSkillType findLifeSkill(int skillLibId){
		for (LifeSkillType e : LifeSkillType.values()) {
			if (skillLibId == e.getSkillLibId() ) {
				return e;
			}			
		}
		return null;
		
	}

	
	
}
